package VN.EDU.IMIC.DEVELOPER.VUVANLUANLEVEL2.EXAM0102;

import java.util.Scanner;

public class StudentViews {

	public static void main(String[] args) {
	StudentEntity Stu01 = new StudentEntity();
	StudentEntity Stu02 = new StudentEntity();
	StudentEntity Stu03 = new StudentEntity();
Scanner sc = new Scanner(System.in);

System.out.println("nhap thong tin cho sinh vien thu nhat");
System.out.println("rollno");
Stu01.setRollNo(sc.nextInt());
System.out.println("Fullname");
Stu01.setFullname(sc.next());
System.out.println("Sex");
Stu01.setSex(sc.next());
System.out.println("Email");
Stu01.setEmail(sc.next());
System.out.println("Mobile");
Stu01.setMobile(sc.next());
System.out.println("Address");
Stu01.setAddress(sc.next());
System.out.println("Mark");
Stu01.setMarks(sc.nextDouble());

System.out.println("nhap thong tin cho sinh vien thu hai");
System.out.println("rollno");
Stu02.setRollNo(sc.nextInt());
System.out.println("Fullname");
Stu02.setFullname(sc.next());
System.out.println("Sex");
Stu02.setSex(sc.next());
System.out.println("Email");
Stu02.setEmail(sc.next());
System.out.println("Mobile");
Stu02.setMobile(sc.next());
System.out.println("Address");
Stu02.setAddress(sc.next());
System.out.println("Mark");
Stu02.setMarks(sc.nextDouble());

System.out.println("nhap thong tin cho sinh vien thu ba");
System.out.println("rollno");
Stu03.setRollNo(sc.nextInt());
System.out.println("Fullname");
Stu03.setFullname(sc.next());
System.out.println("Sex");
Stu03.setSex(sc.next());
System.out.println("Email");
Stu03.setEmail(sc.next());
System.out.println("Mobile");
Stu03.setMobile(sc.next());
System.out.println("Address");
Stu03.setAddress(sc.next());
System.out.println("Mark");
Stu03.setMarks(sc.nextDouble()); 

	StudentController objcontroller = new StudentController();
	System.out.println("Hoc vien thu 1" + objcontroller.PrintStudentInfo(Stu01));
	System.out.println("Loai hoc sinh" + objcontroller.CheckMarks(Stu01)); 
	System.out.println("Hoc vien thu 2" + objcontroller.PrintStudentInfo(Stu02));
	System.out.println("Loai hoc sinh" + objcontroller.CheckMarks(Stu02));
	System.out.println("Hoc vien thu 3" + objcontroller.PrintStudentInfo(Stu03));
	System.out.println("Loai hoc sinh" + objcontroller.CheckMarks(Stu03)); 
	System.out.println("So sanh diem hoc vien thu 1 va thu 2 " + objcontroller.CompareTo(Stu02, Stu01));
	System.out.println("So sanh diem hoc vien thu 1 va thu 3 " + objcontroller.CompareTo(Stu03, Stu01));
	System.out.println("So sanh diem hoc vien thu 2 va thu 3 " + objcontroller.CompareTo(Stu02, Stu03)); 
	
}
}
